{% extends '@WebsiteBundle/layout/baselayout.html.twig' %}

{% block body_main %}
	{{ parent() }}
	<div class="page">
		{{ render(path('app_header', {"route":'app_index'})) }}
		<div class="page-wrapper">
			<div class="page-header d-print-none">
				<div class="container-xl">
					<div class="row g-2 align-items-center">
						<div class="col">
							<h2 class="page-title">
								搜索结果
							</h2>
						</div>
					</div>
				</div>
			</div>
			<div class="page-body">
				<div class="container-xl">
					<div class="row row-cards">
						<div class="col-lg-12">
							<nav class="nav nav-underline">
								<a class="nav-link {% if type==1 %} active {% endif %}" href="{{ path('app_search', {type:1}) }}?kw={{ kw }}">文章</a>
								<a class="nav-link {% if type==2 %} active {% endif %}" href="{{ path('app_search', {type:2}) }}?kw={{ kw }}">教程</a>
								<a class="nav-link {% if type==3 %} active {% endif %}" href="{{ path('app_search', {type:3}) }}?kw={{ kw }}">课程</a>
							</nav>
						</div>
						<div class="col-lg-12">
							<div class="card vh-70">
								<div
									class="card-body">
									{# 文章 #}
									{% if type ==1 %}
										{% include '@WebsiteBundle/search/arc.html.twig' %}
										
									{% endif %}

									{# 课程 #}
									{% if type ==2 %}
									{% include '@WebsiteBundle/search/tutorial.html.twig' %}
									{% endif %}
									{# 课程 #}
									{% if type ==3 %}
									{% include '@WebsiteBundle/search/course.html.twig' %}	
									{% endif %}
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		{{ render(path('app_footer')) }}
	</div>
{% endblock %}
